package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.CustomerReturnListGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerReturnListGoodsMapper extends BaseMapper<CustomerReturnListGoods> {
    @MapKey("id")
    List<Map> count(@Param("sTime") String sTime,
                    @Param("eTime") String eTime,
                    @Param("goodsTypeId") Integer goodsTypeId,
                    @Param("codeOrName") String codeOrName);

    void save(CustomerReturnList customerReturnList);


}
